package ft.app.gtig.entity;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Column;
import com.haulmont.cuba.core.entity.StandardEntity;
import com.haulmont.chile.core.annotations.NamePattern;
import java.util.Date;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import java.util.Set;
import javax.persistence.JoinTable;
import javax.persistence.ManyToMany;

@NamePattern("%s|id")
@Table(name = "GTIG_ARTICLE")
@Entity(name = "gtig$Article")
public class Article extends StandardEntity {
    private static final long serialVersionUID = 813646755570916878L;

    @Column(name = "TITLE", nullable = false)
    protected String title;

    @Column(name = "AUTHOR", nullable = false, length = 50)
    protected String author;

    @Column(name = "IMAGES", nullable = false)
    protected String images;

    @Column(name = "CONTENT", nullable = false, length = 700)
    protected String content;

    @Temporal(TemporalType.DATE)
    @Column(name = "TIME_", nullable = false)
    protected Date time;




    public void setTime(Date time) {
        this.time = time;
    }

    public Date getTime() {
        return time;
    }


    public void setContent(String content) {
        this.content = content;
    }

    public String getContent() {
        return content;
    }


    public void setAuthor(String author) {
        this.author = author;
    }

    public String getAuthor() {
        return author;
    }


    public void setTitle(String title) {
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public void setImages(String images) {
        this.images = images;
    }

    public String getImages() {
        return images;
    }


}